//
//  DetailAressCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/31.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class DetailAressCell: BaseTableViewCell {

    @IBOutlet weak var textViewH: NSLayoutConstraint!
    
    var tableView : UITableView?


    @IBOutlet weak var bottomTextView: UITextView!
    
    
    var model : FillAddressInfoModel?{
        
        didSet{
            
            
            
            
        }
        
        
        
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        contentView.backgroundColor = UIColor.white
        
        bottomTextView.delegate = self
        
        bottomTextView.autocapitalizationType = .none
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}


extension DetailAressCell : UITextViewDelegate{
    
    
    func textViewDidChange(_ textView: UITextView) {
        
        model?.detailAderss = textView.text
        
        tableView?.beginUpdates()
        
        tableView?.endUpdates()
        
    }
    
    
    
}
